home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / Cpp4VB / WINTLB / COMCONST.ODL next >
Text File  |  1996-05-30  |  4KB  |  126 lines

  1.  
  2. [
  3. uuid(54674060-3A82-101B-8181-00AA003743D3),
  4. helpstring("Control Character Strings and Other Common Constants"),
  5. dllname("NOSUCH.DLL")
  6. ]
  7. module CommonConst {
  8.  
  9.     [ helpstring("Empty string (\"\")") ]
  10.     const LPSTR sEmpty = "";
  11.     [ helpstring("Null character (ASCII 0)") ]
  12.     const LPSTR sNullChr = "\0";
  13.     [ helpstring("Null string pointer (address zero)") ]
  14.     const LPSTR sNullStr = 0;
  15.     [ helpstring("Carriage return/line feed (ASCII 13,10)") ]
  16.     const LPSTR sCrLf = "\r\n";
  17.     [ helpstring("Double carriage return/line feed (ASCII 13,10,13,10)") ]
  18.     const LPSTR sCrLfCrLf = "\r\n\r\n";
  19.     [ helpstring("Carriage return (ASCII 13)") ]
  20.     const LPSTR sCr = "\r";
  21.     [ helpstring("Line feed (ASCII 10)") ]
  22.     const LPSTR sLf = "\n";
  23.     [ helpstring("Bell (ASCII 7)") ]
  24.     const LPSTR sBell = "\a";
  25.     [ helpstring("Backspace (ASCII 8)") ]
  26.     const LPSTR sBack = "\b";
  27.     [ helpstring("Tab (ASCII 9)") ]
  28.     const LPSTR sTab = "\t";
  29.     [ helpstring("Vertical Tab (ASCII 11)") ]
  30.     const LPSTR sVerticalTab = "\v";
  31.     [ helpstring("Form feed (ASCII 12)") ]
  32.     const LPSTR sFormFeed = "\f";
  33.  
  34.     // Uncommon consts
  35.     const LPSTR sSOH = "";
  36.     const LPSTR sSTX = "";
  37.     const LPSTR sETX = "";
  38.     const LPSTR sEOT = "";
  39.     const LPSTR sENQ = "";
  40.     const LPSTR sACK = "";
  41.     
  42.     const LPSTR sSO  = "";
  43.     const LPSTR sSI  = "";
  44.     const LPSTR sDLE = "";
  45.     const LPSTR sDC1 = "";
  46.     const LPSTR sDC2 = "";
  47.     const LPSTR sDC3 = "";
  48.     const LPSTR sDC4 = "";
  49.     const LPSTR sNAK = "";
  50.     const LPSTR sSYN = "";
  51.     const LPSTR sETB = "";
  52.     const LPSTR sCAN = "";
  53.     const LPSTR sEM  = "";
  54.     // const LPSTR sSUB = " "; // Can't define in ODL
  55.     const LPSTR sESC = "";
  56.     const LPSTR sFS  = "";
  57.     const LPSTR sGS  = "";
  58.     const LPSTR sRS  = "";
  59.     const LPSTR sUS  = "";
  60.  
  61.     [ helpstring("Executable Extension") ]
  62.     const LPSTR sExeExt = ".EXE";
  63.     [ helpstring("Program Information File Extension") ]
  64.     const LPSTR sPifExt = ".PIF";
  65.     [ helpstring("Command File Extension") ]
  66.     const LPSTR sCmdExt = ".CMD";
  67.     [ helpstring("Batch File Extension") ]
  68.     const LPSTR sBatExt = ".BAT";
  69.     [ helpstring("Flat Executable File Extension") ]
  70.     const LPSTR sComExt = ".COM";
  71.  
  72.     [ helpstring("Backslash (directory separator)") ]
  73.     const LPSTR sBSlash = "\\";
  74.     [ helpstring("Double backslash (network directory indicator)") ]
  75.     const LPSTR sBSlash2 = "\\\\";
  76.     [ helpstring("Colon (drive separator)") ]
  77.     const LPSTR sColon = ":";
  78.     [ helpstring("Dot (file extension separator)") ]
  79.     const LPSTR sDot = ".";
  80.     [ helpstring("Space") ]
  81.     const LPSTR sSpace = " ";
  82.     [ helpstring("Single quote") ]
  83.     const LPSTR sQuote1 = "'";
  84.     [ helpstring("Double quote") ]
  85.     const LPSTR sQuote2 = "\"";
  86.     [ helpstring("Pipe (horizontal bar)") ]
  87.     const LPSTR sPipe = "|";
  88.     [ helpstring("Less than") ]
  89.     const LPSTR sLesser = "<";
  90.     [ helpstring("Greater than") ]
  91.     const LPSTR sGreater = ">";
  92.  
  93.     [ helpstring("Null pointer") ]
  94.     const long pNull = 0;
  95.     [ helpstring("Null handle") ]
  96.     #ifdef WIN32
  97.     const long hNull = 0;
  98.     #else
  99.     const short hNull = 0;
  100.     #endif
  101.  
  102.     [ helpstring("Maximum directory length") ]
  103.     #ifdef WIN32
  104.     const int cMaxPath = 260;
  105.     #else
  106.     const int cMaxPath = 64;
  107.     #endif
  108.  
  109.     [ helpstring("Maximum file length") ]
  110.     #ifdef WIN32
  111.     const int cMaxFile = 260;
  112.     #else
  113.     const int cMaxFile = 13;
  114.     #endif
  115.  
  116.     // Keycodes that are missing or have confusing names in VB type library
  117.     [ helpstring("ScrollLock key.") ]
  118.     const int vbKeyScroll = 0x91;
  119.     [ helpstring("ScrollLock key.") ]
  120.     const int vbKeyScrollLock = 0x91;
  121.     [ helpstring("Page Up key.") ]
  122.     const int vbKeyPrior = 0x21;
  123.     [ helpstring("Page Down key.") ]
  124.     const int VK_NEXT = 0x22;
  125. }
  126.